QT       += core gui opengl widgets xml

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

TARGET = OSGT
MOC_DIR         = temp/moc
RCC_DIR         = temp/rcc
UI_DIR          = temp/ui
OBJECTS_DIR     = temp/obj


win32:CONFIG(debug, debug|release) {
    DESTDIR         = $$PWD/bin/Debug
} else {
    DESTDIR         = $$PWD/bin/Release
}
CONFIG          += console

INCLUDEPATH += osgQt/include

#system(./genExport.bat)
#QMAKE_CLEAN += osgQt/include/osgQOpenGL/Export

SOURCES += \
    elementreader.cpp \
    main.cpp \
    mainwindow.cpp \
    osgqt.cpp

HEADERS += \
    elementreader.h \
    mainwindow.h \
    osgqt.h

FORMS += \
    mainwindow.ui

INCLUDEPATH += D:/OSG/build19/include
DEPENDPATH += D:/OSG/build19/include

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

CONFIG(release, debug|release) {
LIBS += -LD:\OSG\build19\lib -lOpenThreads -losg -losgAnimation -losgDB -losgFX -losgGA -losgViewer -losgWidget -losgVolume -losgUtil -losgUI -losgText -losgTerrain -losgSim -losgShadow -losgParticle -losgManipulator
} else {
LIBS += -LD:\OSG\build19\lib -lOpenThreadsd -losgd -losgAnimationd -losgDBd -losgFXd -losgGAd -losgViewerd -losgWidgetd -losgVolumed -losgUtild -losgUId -losgTextd -losgTerraind -losgSimd -losgShadowd -losgParticled -losgManipulatord
}
